package com.lglbc.day04;

import com.alibaba.fastjson.JSON;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/4/8
 * @Description
 */
@RestController
public class IndexController {
    @RequestMapping("/")
    public String index(Authentication authentication){
        return JSON.toJSONString(authentication);
    }

}
